/**
 * 菜单栏缩放
 */
$(function(){
    $('.flexible').on('click', function () {
        var loading = layer.load(0, {shade: false, time: 2 * 1000});
        var isShow = $(this).attr('data-side-fold');
        if (isShow == 1) { // 缩放
            $(this).attr('data-side-fold', 0);
            $('.layuimini-tool i').attr('class', 'fa fa-indent');
            $('.layadmin-tabspage-none').attr('class', 'layadmin-tabspage-none layadmin-side-shrink');
        } else { // 正常
            $(this).attr('data-side-fold', 1);
            $('.layuimini-tool i').attr('class', 'fa fa-outdent');
            $('.layadmin-tabspage-none').attr('class', 'layadmin-tabspage-none');
        }

    });
})

